package com.car.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Menu {
    //    菜单ID
    private Integer menu_id;
    //    菜单名称
    private String menu_name;
    //    父菜单ID
    private Integer parent_id;
    //    显示顺序
    private Integer order_num;
    //    请求地址
    private String url;
    //    打开方式
    private String target;
    //    菜单类型
    private String menu_type;
    //    菜单状态
    private String visible;
    //    是否刷新
    private String is_refresh;
    //    权限标识
    private String perms;
    //    菜单图标
    private String icon;
    //    创建者
    private String create_by;
    //    创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date create_time;
    //    更新者
    private String update_by;
    //    更新时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date update_time;
    //    备注
    private String remark;

    public Menu() {
    }

    public Menu(Integer menu_id, String menu_name, Integer parent_id, Integer order_num, String url, String target, String menu_type, String visible, String is_refresh, String perms, String icon, String create_by, Date create_time, String update_by, Date update_time, String remark) {
        this.menu_id = menu_id;
        this.menu_name = menu_name;
        this.parent_id = parent_id;
        this.order_num = order_num;
        this.url = url;
        this.target = target;
        this.menu_type = menu_type;
        this.visible = visible;
        this.is_refresh = is_refresh;
        this.perms = perms;
        this.icon = icon;
        this.create_by = create_by;
        this.create_time = create_time;
        this.update_by = update_by;
        this.update_time = update_time;
        this.remark = remark;
    }

    /**
     * 获取
     *
     * @return menu_id
     */
    public Integer getMenu_id() {
        return menu_id;
    }

    /**
     * 设置
     *
     * @param menu_id
     */
    public void setMenu_id(Integer menu_id) {
        this.menu_id = menu_id;
    }

    /**
     * 获取
     *
     * @return menu_name
     */
    public String getMenu_name() {
        return menu_name;
    }

    /**
     * 设置
     *
     * @param menu_name
     */
    public void setMenu_name(String menu_name) {
        this.menu_name = menu_name;
    }

    /**
     * 获取
     *
     * @return parent_id
     */
    public Integer getParent_id() {
        return parent_id;
    }

    /**
     * 设置
     *
     * @param parent_id
     */
    public void setParent_id(Integer parent_id) {
        this.parent_id = parent_id;
    }

    /**
     * 获取
     *
     * @return order_num
     */
    public Integer getOrder_num() {
        return order_num;
    }

    /**
     * 设置
     *
     * @param order_num
     */
    public void setOrder_num(Integer order_num) {
        this.order_num = order_num;
    }

    /**
     * 获取
     *
     * @return url
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置
     *
     * @param url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 获取
     *
     * @return target
     */
    public String getTarget() {
        return target;
    }

    /**
     * 设置
     *
     * @param target
     */
    public void setTarget(String target) {
        this.target = target;
    }

    /**
     * 获取
     *
     * @return menu_type
     */
    public String getMenu_type() {
        return menu_type;
    }

    /**
     * 设置
     *
     * @param menu_type
     */
    public void setMenu_type(String menu_type) {
        this.menu_type = menu_type;
    }

    /**
     * 获取
     *
     * @return visible
     */
    public String getVisible() {
        return visible;
    }

    /**
     * 设置
     *
     * @param visible
     */
    public void setVisible(String visible) {
        this.visible = visible;
    }

    /**
     * 获取
     *
     * @return is_refresh
     */
    public String getIs_refresh() {
        return is_refresh;
    }

    /**
     * 设置
     *
     * @param is_refresh
     */
    public void setIs_refresh(String is_refresh) {
        this.is_refresh = is_refresh;
    }

    /**
     * 获取
     *
     * @return perms
     */
    public String getPerms() {
        return perms;
    }

    /**
     * 设置
     *
     * @param perms
     */
    public void setPerms(String perms) {
        this.perms = perms;
    }

    /**
     * 获取
     *
     * @return icon
     */
    public String getIcon() {
        return icon;
    }

    /**
     * 设置
     *
     * @param icon
     */
    public void setIcon(String icon) {
        this.icon = icon;
    }

    /**
     * 获取
     *
     * @return create_by
     */
    public String getCreate_by() {
        return create_by;
    }

    /**
     * 设置
     *
     * @param create_by
     */
    public void setCreate_by(String create_by) {
        this.create_by = create_by;
    }

    /**
     * 获取
     *
     * @return create_time
     */
    public Date getCreate_time() {
        return create_time;
    }

    /**
     * 设置
     *
     * @param create_time
     */
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    /**
     * 获取
     *
     * @return update_by
     */
    public String getUpdate_by() {
        return update_by;
    }

    /**
     * 设置
     *
     * @param update_by
     */
    public void setUpdate_by(String update_by) {
        this.update_by = update_by;
    }

    /**
     * 获取
     *
     * @return update_time
     */
    public Date getUpdate_time() {
        return update_time;
    }

    /**
     * 设置
     *
     * @param update_time
     */
    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    /**
     * 获取
     *
     * @return remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置
     *
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return "Menu{menu_id = " + menu_id + ", menu_name = " + menu_name + ", parent_id = " + parent_id + ", order_num = " + order_num + ", url = " + url + ", target = " + target + ", menu_type = " + menu_type + ", visible = " + visible + ", is_refresh = " + is_refresh + ", perms = " + perms + ", icon = " + icon + ", create_by = " + create_by + ", create_time = " + create_time + ", update_by = " + update_by + ", update_time = " + update_time + ", remark = " + remark + "}";
    }
}
